import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: ()=>import("../views/Home/Home.vue")
  },
  {
    path: '/topic',
    name: 'Topic',
    component: () => import( '../views/Topic/topic.vue')
  },
  {
    path: '/category',
    name: 'Category',
    component: () => import( '../views/category/Category.vue')
  },
  {
    path: '/cart',
    name: 'Cart',
    component: () => import( '../views/cart/cart.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import( '../views/my/my.vue')
  },
  {
    path:"/serach",
    name:"Serach",
    component:()=> import("../views/Home/component/Serach.vue")
  },
  {
    path:'/Introduction',
    name:'Introduction',
    component:()=>import("../views/Home/component/Introduction.vue")
  },
  {
    path:"/categoryinfo",
    name:"categoryinfo",
    component:()=>import("../views/category/component/categoryinfo.vue")
  },
  {
    path:"/headList",
    name:"headList",
    component:()=>import("../views/Home/component/headList.vue")
  },
  {
    path:"/newgoods",
    name:"newgoods",
    component:()=>import("../views/Home/component/newgoods.vue")
  },
  {
    path:"/goodsinfo",
    name:"goodsinfo",
    component:()=>import("../views/Home/component/goodsinfo.vue")
  },
  {
    path:"/topiclist",
    name:"topiclist",
    component:()=>import("../views/Home/component/topiclist.vue")
  },
  {
    path:"/favorites",
    name:"favorites",
    component:()=>import("../views/my/component/Favorites.vue")
  },
  {
    path:"/opinion",
    name:"opinion",
    component:()=>import("../views/my/component/opinion.vue")
  },
  {
    path:"/address",
    name:"address",
    component:()=>import("../views/my/component/address.vue")
  },
  {
    path:"/addinput",
    name:"addinput",
    component:()=>import("../views/my/component/addinput.vue")
  },
  {
    path:"/order",
    name:"order",
    component:()=>import("../views/my/component/Order.vue")
  },
  {
    path:"/serchlist",
    name:"serchlist",
    component:()=>import("../views/Home/component/serchlist.vue")
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router

